package com.heiyanqiang.dao;

import com.heiyanqiang.domain.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PermissionsDao {

    //@Select("select * from permissions where id = #{id}")
    @Select("select * from permission where id in (select permissionId from role_permission where roleId = #{id} )")
    List<Permission> findPermissionByRoleId(Integer id);

}
